/*
 * QE3e Qt Quick 3D Engine.
 * Copyright (C) 2010 Joris Vaillant and Mathieu Pujol 
 * <joris.vaillant@gmail.com>  <mathieu.pujol87@gmail.com>
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */


#ifndef VIEW_H
#define VIEW_H

// global
#include "qe3e_global.h"

// includes
// QE3e
#include "Flags.h"

//Qt


namespace qe3e
{
  // forward declaration
  class Item;
  class Scene;

  class QE3E_EXPORT View
  {

  public:
    View();

    virtual void setScene(Scene* scene);
    virtual void itemDirtyUpdate(Item* item, DirtyFlags flags);

    virtual void itemAdded(Item* item);
    virtual void itemRemoved(Item* item);

    void update();
  private:
    Scene* m_scene;
  };
}

#endif // VIEW_H
